package Generics.Exercise;

/**
 * ClassName:TeddyDog
 * Package:Generics.Exercise
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/2/8-11:40
 * @Version:v1.0
 */
public class TeddyDog extends Dog{
    @Override
    public void eat() {
        System.out.println("一只叫做"+getName()+"的,"+getAge()+"岁的泰迪,正在吃骨头,边吃边蹭");
    }
}
